package com.qianyu.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianyu.project.entity.SystemRole;
import com.qianyu.project.mapper.provider.base.SystemRoleMapperProvider;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2020-12-23
 */
@Repository
public interface SystemRoleMapper extends BaseMapper<SystemRole> {

    @SelectProvider(type = SystemRoleMapperProvider.class,method = "selectByUser")
    List<SystemRole> selectByUser(Long id);
}
